import axios from 'axios';

// let ENV = `https://test17.healthsource.com.cn/`;
// let ENV = `https://rearain.healthplatform.xyz/`;

axios.defaults.baseURL = ENVURL;
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
// axios.defaults.headers.common['token'] = '7f7cb7205a99eff97f32914c2518fba8';

// axios.interceptors.request.use(v => {
//   console.error('----', v.headers);

//   return v;
// });

// let req = axios.create({
//   baseURL: ENV,
// });

export default axios;